<!doctype html>
<html lang="zh-CN" xml:lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta charset="UTF-8" />
<title>my shop cart to agoda</title>
<meta name="viewport" content="width=1226" />
        <link rel="Shortcut Icon" type="image/x-icon" href="/homeassets/index/images/favicon.ico" />
        <meta name="description" content="agoda"/>
        <meta name="keywords" content="agoda" />
        <link rel="stylesheet" href="/homeassets/index/css/base.min.css" />
        <link rel="stylesheet" type="text/css" href="/homeassets/index/css/order.min.css" />
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <script src="/homeassets/jquery-1.8.3.min.js"></script>
        <script src="/homeassets/homepage/orderjs/area.js"></script>
<script type="text/javascript">var _head_over_time = (new Date()).getTime();</script>
</head>
<body>

@include('home.layout.cartheader')
<div class="page-main">
    <div class="container">
        <div class="checkout-box">
             
            <div class="section section-goods">
                <div class="section-header clearfix">
                    <h3 class="title">商品及优惠券</h3>
                    <div class="more">
                                      
                    </div>
                </div>
                <div class="section-body">
                    <ul class="goods-list" id="J_goodsList">
                      @foreach($goods as $value)
                          <li class="clearfix" info="N{{ $value['id'] }}L{{ $value['count'] }}">
                            <div class="col col-img">
                                <img src="{{ $value['picture'] }}" width="30" height="30">
                            </div>
                            <div class="col col-name">
                                <a href="/goodsdetail/{{ $value['id'] }}" target="_blank" data-stat-id="" onclick="">
                                {{ $value['goodsname'] }}
                            </a>
                            </div>
                            <div class="col col-price">
                                {{ $value['price'] }} x {{ $value['count'] }} 
                            </div>
                            <div class="col col-status">
                                有货
                            </div>
                            <div class="col col-total" ii="jj">
                                {{ $value['price'] * $value['count'] }}.0元
                            </div>
                        </li>
                      @endforeach
                        </ul>
                </div>
            </div>

        
            <div class="section-bar clearfix">
              <div class="fl">
                <!-- 收获地址选择 -->
                    <div class="seleced-address" id="J_confirmAddress">收件人：{{ $sites['name'] }} 电话：{{ $sites['phone'] }}<br>地址：{{ $sites['sites'] }} </div>
                    <div class="big-pro-tip hide J_confirmBigProTip"></div>
                </div>
                
                <div class="fr">
                    <a href="javascript:void(0);" class="btn btn-primary" id="J_checkoutToPay" onclick="">结算</a>
                </div>
                <div class="fr" id="sum">
                  <h3>总金额：<span style="color:orange">{{ $sum }}.0元</span></h3>
                </div>
            </div>
        </div>
    
    </div>
</div>
   <!-- 弹窗的铁幕 -->
        <div class="modal fade modal-hide  modal-alert in" id="J_modalAlert" style="position:fixed;top:450px">
            <div class="modal-bd">
                <div class="text">
                    <h3 id="J_alertMsg">账户余额不足请充值!</h3>
                </div>
                <div class="text">
                    ￥<input type="text" id="addmoney" onkeyup="if(!/^\d+$/.test(this.value)) { this.value=this.value.replace(/[^\d]+/g,'');}" onblur="if(!/^\d+$/.test(this.value)) { this.value=this.value.replace(/[^\d]+/g,'');}" placeholder="请输入充值金额" style="height:30px;width:100%">
                </div>
                <div class="actions">
                    <button class="btn btn-gray" data-dismiss="modal" id="J_alertCancel">取消</button>
                    <button class="btn btn-primary" data-dismiss="modal" id="J_alertOk">确定</button>
                </div>
                <a class="close" id="mmmclose" data-dismiss="modal" href="javascript: void(0);" data-stat-id="9cce544f88fddc4d"><i class="iconfont">X</i></a>
            </div>
        </div>
<!-- 订单提交的ajax -->
<script src="/homeassets/homepage/orderjs/uporder.js"></script>
<script src="/homeassets/index/js/layout.js"></script> 
</body>
</html>